package com.scalar.chiptrack.operations.dataentry.lotcorrection.actionCommands;
import com.scalar.chiptrack.actioncommands.ActionCommand;

/**
 * User: Ganesh
 * Date: Nov 28, 2006
 * Time: 11:35:56 AM
 */
public class LotCorrectionActionCommandFactory 
{
    private LotCorrectionActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand(String action)
    {
        if (action == null || "processTypes".equalsIgnoreCase(action))
        {
            return new LotCorrectionLoadProcessTypesCommand();
        }
        else if ( "load_partNumbers".equalsIgnoreCase( action ) )
        {
            return new LotCorrectionLoadPartNumbersCommand();
        }
        else if ("load_locations".equalsIgnoreCase( action ) )
        {
            return new LotCorrectionLoadLocationCommand();
        }
        else if ("load_lotNumbers".equalsIgnoreCase(action))
        {
            return new LotCorrectionLoadLotNumbersCommand();
        }
        else if ("load_lotDetails".equalsIgnoreCase(action))
        {
            return new LotCorrectionLoadLotDetailCommand();
        }
        else if ("save_lotCorrection".equalsIgnoreCase(action))
        {
            return new LotCorrectionSaveCommand();
        }
        return null;
    }
}
